package com.io.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.io.dao.TbCarMapper;
import com.io.entity.one2many.TbCar;
import com.io.service.TbCarService;

/**
 * The class/interface
 *
 * @author guodd
 * @version 1.0 use jdk 1.8
 */
@Service
public class TbCarServiceImpl implements TbCarService {

    @Resource
    private TbCarMapper tbCarMapper;

    @Override
    public int deleteByPrimaryKey(Integer sid) {
        return tbCarMapper.deleteByPrimaryKey(sid);
    }

    @Override
    public int insert(TbCar record) {
        return tbCarMapper.insert(record);
    }

    @Override
    public int insertSelective(TbCar record) {
        return tbCarMapper.insertSelective(record);
    }

    @Override
    public TbCar selectByPrimaryKey(Integer sid) {
        return tbCarMapper.selectByPrimaryKey(sid);
    }

    @Override
    public int updateByPrimaryKeySelective(TbCar record) {
        return tbCarMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TbCar record) {
        return tbCarMapper.updateByPrimaryKey(record);
    }

}

